package br.com.zanictech.ponto

class RegistroPonto {

	Date data
	String entrada
	String almoco
	String tarde
	String saida
	Usuario usuario
	String observacao
	
    static constraints = {
		data(blank:false)
		entrada(matches: "([01]?[0-9]|2[0-3]):[0-5][0-9]")
		almoco(matches: "([01]?[0-9]|2[0-3]):[0-5][0-9]")
		tarde(matches: "([01]?[0-9]|2[0-3]):[0-5][0-9]")
		saida(matches: "([01]?[0-9]|2[0-3]):[0-5][0-9]")
    }
}
